package com.stylefeng.guns.rest.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户广告领钱记录
 * </p>
 *
 * @author ruiyifeng123
 * @since 2018-10-15
 */
@TableName("wz_user_adv_record")
public class WzUserAdvRecord extends Model<WzUserAdvRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 用户编号
     */
    @TableField("user_code")
    private Long userCode;
    /**
     * 用户昵称
     */
    @TableField("nick_name")
    private String nickName;
    /**
     * 用户头像
     */
    @TableField("avatar_url")
    private String avatarUrl;
    /**
     * 广告id
     */
    @TableField("adv_id")
    private Long advId;
    /**
     * 地图广告id
     */
    @TableField("adv_map_id")
    private String advMapId;
    @TableField("adv_user_id")
    private String advUserId;
    /**
     * 封面缩略图
     */
    @TableField("cover_url")
    private String coverUrl;
    /**
     * 是否领取奖励：0-不可以；1-可以；
     */
    @TableField("has_reward")
    private Integer hasReward;
    /**
     * 是否有详情：0-没有；1-有；
     */
    @TableField("has_detail")
    private Integer hasDetail;
    /**
     * 赏金
     */
    private Integer reward;
    /**
     * 类型：1-领钱；2-不再关注；
     */
    private Integer type;
    /**
     * 子类型;1-广告；2-新闻；
     */
    private Integer subtype;
    /**
     * 状态：1-正常；
     */
    private Integer status;
    /**
     * 标题
     */
    private String title;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserCode() {
        return userCode;
    }

    public void setUserCode(Long userCode) {
        this.userCode = userCode;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public Long getAdvId() {
        return advId;
    }

    public void setAdvId(Long advId) {
        this.advId = advId;
    }

    public String getAdvMapId() {
        return advMapId;
    }

    public void setAdvMapId(String advMapId) {
        this.advMapId = advMapId;
    }

    public String getAdvUserId() {
        return advUserId;
    }

    public void setAdvUserId(String advUserId) {
        this.advUserId = advUserId;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }

    public Integer getHasReward() {
        return hasReward;
    }

    public void setHasReward(Integer hasReward) {
        this.hasReward = hasReward;
    }

    public Integer getHasDetail() {
        return hasDetail;
    }

    public void setHasDetail(Integer hasDetail) {
        this.hasDetail = hasDetail;
    }

    public Integer getReward() {
        return reward;
    }

    public void setReward(Integer reward) {
        this.reward = reward;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getSubtype() {
        return subtype;
    }

    public void setSubtype(Integer subtype) {
        this.subtype = subtype;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "WzUserAdvRecord{" +
        "id=" + id +
        ", userCode=" + userCode +
        ", nickName=" + nickName +
        ", avatarUrl=" + avatarUrl +
        ", advId=" + advId +
        ", advMapId=" + advMapId +
        ", advUserId=" + advUserId +
        ", coverUrl=" + coverUrl +
        ", hasReward=" + hasReward +
        ", hasDetail=" + hasDetail +
        ", reward=" + reward +
        ", type=" + type +
        ", subtype=" + subtype +
        ", status=" + status +
        ", title=" + title +
        ", createTime=" + createTime +
        "}";
    }
}
